GetPageOrientation
Returns the page orientation.
Syntax
expression.GetPageOrientation();
expression
- A variable that represents a ApiWorksheet class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example shows how to get the page orientation.
var oWorksheet = Api.GetActiveSheet();
var sPageOrientation = oWorksheet.GetPageOrientation();
oWorksheet.GetRange("A1").SetValue("Page orientation: ");
oWorksheet.GetRange("C1").SetValue(sPageOrientation);